package com.pingan.haofang.searchcloud.common.dto;

/**
 * 获取数据异常重试DTO
 *
 * @author LICHUANG513
 * @date 2018/8/31
 * @since 1.0.0
 */
public class FetchDataRetryDTO {

    /**
     * 抓取数据时每次查询允许出现最大异常次数
     */
    private int singleQueryMaxRetryTime;

    /**
     * 抓取数据时所有查询累计允许出现最大异常次数
     */
    private int allQueryMaxRetryTime;

    /**
     * 抓取数据时异常重试时间间隔（单位毫秒）
     */
    private long retryTimeInterval;

    public FetchDataRetryDTO(int singleQueryMaxRetryTime, int allQueryMaxRetryTime, long retryTimeInterval) {
        this.singleQueryMaxRetryTime = singleQueryMaxRetryTime;
        this.allQueryMaxRetryTime = allQueryMaxRetryTime;
        this.retryTimeInterval = retryTimeInterval;
    }

    public int getSingleQueryMaxRetryTime() {
        return singleQueryMaxRetryTime;
    }

    public void setSingleQueryMaxRetryTime(int singleQueryMaxRetryTime) {
        this.singleQueryMaxRetryTime = singleQueryMaxRetryTime;
    }

    public int getAllQueryMaxRetryTime() {
        return allQueryMaxRetryTime;
    }

    public void setAllQueryMaxRetryTime(int allQueryMaxRetryTime) {
        this.allQueryMaxRetryTime = allQueryMaxRetryTime;
    }

    public long getRetryTimeInterval() {
        return retryTimeInterval;
    }

    public void setRetryTimeInterval(long retryTimeInterval) {
        this.retryTimeInterval = retryTimeInterval;
    }
}
